package com.rtline.business.vo;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelProperty;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>UserVo .
 *
 * <p>change history:
 *
 * <pre>
 * date         defect       person          comments
 * --------------------------------------------------------------------------------
 * 2025/5/31    ********     Tao Ren    create file.
 * </pre>
 *
 * @author Tao Ren
 * @date 2025/5/31 13:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderVo extends BaseExcelVo {
    @ExcelProperty(value = "主键ID", index = 0)
    private Long id;

    @ExcelProperty(value = "用户id", index = 1)
    private Long userId;

    @ExcelProperty(value = "订单状态", index = 2)
    @NotBlank(message = "订单状态 不能为空")
    private String orderStatus;

    @ExcelProperty(value = "金额", index = 3)
    private BigDecimal totalAmount;

    @ExcelProperty(value = "错误信息", index = 4)
    private String errorMessage;

    @Override
    public String toString() {
        return "OrderVo{" +
                "id=" + id +
                ", userId=" + userId +
                ", orderStatus='" + orderStatus + '\'' +
                ", totalAmount=" + totalAmount +
                ", errorMessage='" + errorMessage + '\'' +
                '}';
    }
}
